//
//  LCUPInfoNetworking.m
//  NetDemo
//
//  Created by admin on 2019/4/19.
//  Copyright © 2019年 admin. All rights reserved.
//

#import "LCUPInfoNetworking.h"
#import "NetworkTool.h"

@interface LCUPInfoNetworking ()

@end

@implementation LCUPInfoNetworking

IMPLEMENTATION_SINGLETON(LCUPInfoNetworking)

+ (void)open {
    NSDictionary *params = @{
                             @"action_code":        @"open",
                             };
    
    [kNetworkTool GETWithUrlString:kNetworkTool.upLoadUrl parameters:params headers:@{} success:^(NSDictionary *dict) {
//        NSLog(@"upOSInfo dict = %@", dict);
    } failure:^(NSError *error) {
//        NSLog(@"error = %@", error);
    }];
    
}

+ (void)upLoginWithTel:(NSString *)tel uid:(NSString *)uid{
    NSDictionary *params = @{
                             @"action_code":        @"login",
                             @"tel":                 tel,
                             @"uid":                 uid,
                             };
    
    [kNetworkTool GETWithUrlString:kNetworkTool.upLoadUrl parameters:params headers:@{} success:^(NSDictionary *dict) {
        NSLog(@"upOSInfo dict = %@", dict);
    } failure:^(NSError *error) {
        NSLog(@"error = %@", error);
    }];
}

- (NSMutableDictionary *)parameters {
    if (_parameters == nil) {
        _parameters = [NSMutableDictionary new];
    }
    return _parameters;
}

@end
